
<%@ page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<head>
    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改用户</title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <script src="/js/jquery-2.1.0.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">修改图书</h3>
    <form action="/update" method="post">
        <%--用c：if做大量判断，将得到的user信息填入这些表单中--%>
        <input type="hidden" name="id" value="${book.id}"/>
        <div class="form-group">
            <label for="name">书名:</label>
            <input type="text" class="form-control" id="name" name="name" value="${book.name}" placeholder="请输入书名"/>
        </div>
        <div class="form-group">
            <label for="isbn">ISBN:</label>
            <input type="text" class="form-control" id="isbn" name="isbn" value="${book.isbn}" placeholder="请输入ISBN"/>
        </div>

        <div class="form-group">
            <label for="author">作者:</label>
            <input type="text" class="form-control" id="author" name="author" value="${book.author}"
                   placeholder="请输入作者"/>
        </div>
        <div class="form-group">
            <label for="price">价格:</label>
            <input type="text" class="form-control" id="price" name="price" value="${book.price}" placeholder="请输入价格"/>
        </div>
        <div class="form-group">
            <label for="press">出版社:</label>
            <input type="text" class="form-control" id="press" name="press" value="${book.press}" placeholder="请输入出版社"/>
        </div>

        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="提交"/>
        </div>
    </form>
</div>
</body>
</html>